package server;


/**
 * 
 * Class representing a registed user in the server system
 *
 */
public class User {

	
	private final String username;
	
	// cards in user's hand??
	//ArrayList<Card> cardsInHand;
	
	/**
	 * Constructor
	 * @param u
	 */
	public User(String u)
	{
		username = u;
		
	
	}

	
	@Override
	public int hashCode(){
		return username.hashCode();
	}
	
	public String getUserName()
	{
		return username;
	}
	
	public boolean equals(User user)
	{
		return this.username.equals(user.getUserName());
	}

}
